LIQUID GLASS for After Effects
==============================

A fast liquid-glass effect: real refraction, frost, chromatic aberration, highlights, an
iOS 27 style theme and soft outline shadows. Renders on the GPU (NVIDIA, CUDA) or the CPU.


REQUIREMENTS
------------
- Windows 10 or 11, 64-bit
- Adobe After Effects 2024 or newer
- GPU rendering: NVIDIA GeForce RTX 20 series or newer, NVIDIA driver 580 or newer.
  Any other setup renders on the CPU automatically.


INSTALL
-------
1. Close After Effects.
2. Copy LiquidGlass.aex into this folder:
   C:\Program Files\Adobe\Adobe After Effects <your version>\Support Files\Plug-ins
   Windows will ask for permission. Click Continue.
3. Start After Effects. The effect is under Effect > Stylize > Liquid Glass.

Got more than one After Effects version? Copy it into each one you use.

Updating: replace the old LiquidGlass.aex with the new one.

Effect not showing up? Right-click LiquidGlass.aex, choose Properties, tick Unblock if you see
it, click OK, then restart After Effects.


TURN ON GPU RENDERING
---------------------
File > Project Settings > Video Rendering and Effects > Use:
"Mercury GPU Acceleration (CUDA)".


QUICK START
-----------
Glass over everything below it:
  Layer > New > Adjustment Layer, then apply Liquid Glass to it.
  Position and size the glass with Position, Width, Height and Roundness under Shape 1.

Glass in the shape you draw:
  1. Draw a shape layer (rectangle, ellipse or pen tool).
  2. Turn on the layer's Adjustment Layer switch in the timeline.
  3. Apply Liquid Glass and set Shape Source to "This Shape Layer".
  Move, scale, rotate or animate the layer and the glass follows it.

A round button with a symbol:
  Set Template to "Button (1:1)" and size it with Button Size (Scale resizes any shape).
  Pick up to 3 symbols under Symbol, Second Symbol and Third Symbol: they split evenly across the
  shape. Style them under Symbol & Text Style. Tick Squircle for continuous iOS-style corners: it blends
  with Roundness. Long shapes get G3 continuous corners like iOS: the curve eases in from the long side.
  At 100% Roundness a square is a true circle.

Text on a shape (Built-in Shape):
  Click Edit Text next to Text and type. Text Weight sets Light to Black, Rounded uses the rounded
  style, and Text Size, Color and Opacity set the rest. It shares the space evenly with any symbols.
  Uses SF Pro if it's installed (free from developer.apple.com/fonts), otherwise a similar system font.

Press / touch animation (Built-in Shape):
  Keyframe Press (in the shape's group) from 0% to 100% and back. The bounce is built in: after your keyframes
  end, the button overshoots and settles on its own. Bounce sets how springy it is, Speed
  how fast it follows. Grow, Brighten, Blur and Glow set how it looks when pressed.

Tap on an input or search bar (Tap Effect):
  Set a keyframe on Tap Position wherever and whenever the finger touches: every keyframe is one tap.
  While the finger is down a soft white glow sits under it, and when it lifts a blurred white ring grows
  out from that spot and fades. Tap Duration is how long the finger stays down (seconds), Tap Brightness
  how strong the glow is (the ring is a little brighter), Tap Size how big the fingertip is,
  Tap Blur how soft the ring is. Tap Grow makes the shape you tap swell a little while the finger is down.

Glass in 3D (Built-in Shape or This Shape Layer):
  Turn on the 3D switch of the adjustment layer the effect is on. The glass now sits on that layer in the
  scene: rotate it, move it in Z, or add a camera and it turns and moves with them, in perspective. Taps
  land on the glass where you put them. Matte Layer and Shape List stay flat.

Natural, bouncy movement (Built-in Shape):
  Keyframe Position, Width, Height, Button Size or Scale on a shape, with Spring Motion ticked under
  Motion Settings.
  Position and Scale hit your keyframes exactly, then overshoot where they stop and settle.
  Width, Height and Button Size follow their keyframes like a real spring: they speed up, overshoot
  and settle in one smooth motion, landing just after the keyframe.
  Motion Bounce sets how far it overshoots, Motion Speed how quickly it settles.
  Squash & Stretch sets how much it stretches along its path while moving, and Jelly how much it
  squashes and wobbles after landing. Fast moves get the full effect, slow ones stay calm.
  For the strongest bounce, keep speed going into the last keyframe (ease in only, no Easy Ease
  on the landing).

Glow while moving (Built-in Shape):
  Tick Motion Glow under Motion Settings. Whenever Position, Width, Height, Button Size or Scale is
  animated, the glass glows and blurs in between, the faster the stronger, and fades as it stops.
  It also shrinks a little while it moves: up to 40% for moves, only 10% for Width and Height changes.
  Glow Amount sets how much.

Up to 3 pieces of glass (Built-in Shape):
  Tick Enable under Shape 2 or Shape 3. Each shape has its own Template, Position, size, Roundness,
  Squircle, symbols, text and Press. The look and motion settings are shared.
  They melt together like liquid when they get close. Merge Amount (under Shape) sets how close,
  in pixels. At 0 they don't merge: Shape 3 is drawn on top of Shape 2, and Shape 2 on top of the
  first shape.

Glass from many layers that merge (Shape List):
  1. Make a full-frame adjustment layer above your shape or text layers and apply Liquid Glass.
  2. Set Shape Source to "Shape List" and pick up to 32 layers under Shape List.
  3. Hide the original layers (eye switch off) if you only want the glass.
  It works like Matte Layer, but all the layers become one piece of glass, and they melt together
  when they get close (Merge Amount). Fewer and smaller layers render faster.

Glass in the shape of a text or shape layer (Matte Layer), with its full shadow:
  1. Make a full-frame adjustment layer above your text / shape layer and apply Liquid Glass.
  2. Set Shape Source to "Matte Layer" and pick the text / shape layer in Matte Layer.
  3. Hide the original layer (eye switch off) if you only want the glass.
  The glass follows the matte layer's position, scale, rotation and parenting, and its shadow
  is shown in full (Shadow Softness sets how soft).


Glass that behaves like Apple's Liquid Glass (all optional):
  Materialize (each shape)      Keyframe 0 to 100% and the glass comes in by bending light, not by fading.
  Auto Contrast (Symbol & Text) Symbols and text stay white, fading to black only over a nearly white background.
  Adaptive Shadow (Shadow)      Stronger over busy or dark content, weaker over plain light areas.
  Size-Aware (Refraction)       Bigger glass looks thicker: stronger bending, deeper shadow, softer light.
  Touch Glow (Press Effect)     The press lights up from Touch X and Y and spreads, reaching nearby shapes.
  Lens on Press (Press Effect)  Pressing bends and magnifies what's under the glass.
  Highlight Follow (Highlight)  The highlight swings as the shape travels across the frame. Animate it to see it.
  Dimming (Look)                Darkens what's behind the glass and a soft area around it.
  Light Spill (Look)            Colors around the glass catch in its rim and bleed into its shadow.
  Scroll Edge (own group)       Content fades or dims near the top or bottom of the layer.

CONTROLS
--------
The panel only shows what applies: Matte Layer and Shape List appear when you pick them as the
Shape Source, Width and Height or Button Size depend on the Template, and Shape 2 and 3 open up
once you tick Enable.

Shape           Shape Source, Matte Layer, Merge Amount
Shape List      Layer 1 to Layer 32
Motion Settings Spring Motion, Motion Bounce, Motion Speed, Squash & Stretch, Jelly, Motion Glow,
                Glow Amount
Shape 1, 2, 3   Enable (2 and 3), Template, Position, Width, Height, Button Size, Scale, Roundness,
                Squircle, Tint Color, Tint Amount (100% is exactly your color; lower keeps the content's detail),
                Symbol, Second Symbol, Third Symbol, Symbol Side (left or right of the text), Text, Press, Touch X, Touch Y, Materialize,
                Anchor Point (9 snap points: Position is where it sits, and the shape scales and turns around it),
                Rotation
Symbol & Text Style
                Symbol Size, Weight, Color, Opacity; Text Weight, Rounded, Text Size, Color, Opacity; Auto Contrast
Press Effect    Bounce, Speed, Grow, Brighten, Blur, Glow, Touch Glow, Lens on Press
Tap Effect      Tap Position (each keyframe is a tap), Tap Duration, Tap Brightness, Tap Size, Tap Grow, Tap Blur
Refraction      Refraction (higher = stronger bend at the rim), Bevel Width, Bevel Curve,
                Zoom, Chromatic Aberration, Size-Aware
Look            Dimming, Frost (blur behind the glass), Saturation,
                Brightness, Light Spill
Highlight       Light Angle, Highlight Intensity, Highlight Width, Highlight Follow
Shadow          Shadow Opacity, Shadow Softness, Shadow Offset (cast by the glass outline), Adaptive Shadow
iOS 27 Theme    On/off, Underlay Color, Underlay Fill, Underlay Stroke (the dark outline, all around), Stroke Width,
                Stroke Top & Bottom (the outline's light part, compared with its dark part), Gradient (soft,
                from the bottom of the shape up), Top Light. Turning the theme on sets Light Angle to 0 (light from the top).
Scroll Edge     On/off, Edge, Edge Style (Soft, Dim, Hard), Edge Size, Edge Amount, Edge Color

GOOD TO KNOW
------------
- With "This Shape Layer", After Effects limits an adjustment layer's result to the layer's own
  shape, so the shadow can't appear outside it. For the full shadow, use "Matte Layer" on a
  full-frame adjustment layer instead.
- Shapes supported with "This Shape Layer": rectangles, ellipses and pen paths, including
  group transforms. Polystar shapes and Trim Paths are ignored.
- Half or Quarter preview resolution renders the glass 4x or 16x faster.


UNINSTALL
---------
Close After Effects and delete LiquidGlass.aex from the Plug-ins folder above.
